Leah's Strava Stats 2016-2021

The first part of the code simply authenticates with Strava. If the token has expired, it will refresh it.

Data Snapshot

Below is a snapshot of all activities in a dataframe, tabular format. This format is the basis for all of the calculations below.

Summary Data

Below are several tables showing the data in aggregated form. Summarizing by

  1. Daily Actiities,
  2. Month,
  3. Cumulative by year

Daily Activity Data

Each activity grabbed from the Strava API with duration translated into ellapsed time that considers total hours (days + hours). You need to adjust that value to plot any activities that run longer than 24 hours (100 milers, fast packs, etc).

Right now strava is returning elapsed time in seconds. However it's missing an extra day if your activity went longer than 24 hours so i'm manually fixing my one record that is >24 hours.

Strava Bug for anything > 24 hours

Monthly Summarized Data 2016-2021

Data summarized by month to show monthly total miles and vert by year and month in a stacked bar plot format. Given I really wasnt' running in 2015 I removed that data.

Cumulative Summaries

Below are cumulative summaries for Total Miles and Vertical for all three years starting in 2016 grouped by year for plotting below.

Annual Summaries

Pair Plots

Here, the data are plotted x vs y to begin to look at trends in pace vs miles vs vert. The few really long runs seem to throw off the data significantly.

Something is up with calculating elapsed hours for the Co trail which was 37 hours or something?

https://stackoverflow.com/questions/63459424/how-to-add-multiple-graphs-to-dash-app-on-a-single-browser-page really helpful

DASH adventures

Me just playing with dash here